//
//  StrUtils.h
//  PalmHospitalTongJi
//
//  Created by mardin partytime on 13-11-28.
//  Copyright (c) 2013年 lvxian. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "StringUtils.h"

@interface StrUtils : NSObject

+ (NSString *)distance:(NSString *)aDis;

+ (NSString *)timeParse:(NSString *)aStr;

+ (NSString *)timeNumToStr:(NSString *)aStr;

+ (NSString *)timeNumToBubbleStr:(NSString *)aStr;

+ (NSString *)priceParse:(NSNumber *)aNumber;

+ (NSString *)commentTime:(NSString *)aStr;

+(NSInteger)getAgeFromId:(NSString *)aStr;

+ (NSInteger)getGenderFromId:(NSString *)aStr;

+ (BOOL)checkPwd:(NSString *)aStr;

+ (BOOL)checkMobileNumber:(NSString *)aStr;

+ (BOOL)checkIdentity:(NSString *)aStr;

+ (BOOL)checkEmail:(NSString *)aStr;

+ (BOOL)isEmpty:(NSString *)aStr;

+ (NSString*)NilToEmptyString:(NSString*)str;

+ (NSString *)filterHTML:(NSString *)html;

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

+ (NSString *)formatterDate:(NSString *)datetime dateform:(NSString*)dateform;

+(NSMutableAttributedString*)updateStringColor:(NSString*)string begNum:(NSInteger)begNum endNum:(NSInteger)endNum color:(UIColor*)color;
+(NSString*)formatterDate:(NSString*)datetime;

+(NSString*)getTimeString;

+(CGRect)getStrongTextFontLength:(NSString*)str atFontSize:(NSInteger)fontSize atContainerWidth:(float)width;
+(CGSize)getStrongWidth:(NSString*)str atFont:(UIFont*)font;
+(CGSize)getStrongTextFontLength:(NSString*)str atFontSize:(NSInteger)size;
+(void)NsLogError:(NSError*)error;
+ (NSString *)timeFormatted:(long)totalSeconds;
+(NSString *) compareCurrentTime:(NSDate*) compareDate;
+ (NSString *) getUrlParams:(NSString *) url withParam:(NSString *)param;
+(NSString*)getNSDictionaryValue:(NSDictionary*)dict atFind:(NSString*)str;
@end
